package com.example.keyboardlistenerdemo

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import com.example.lib_core.util.KeyBoardEventBus
import com.example.lib_core.util.presenter.IKeyBoardCallback

class MainActivity : AppCompatActivity(),IKeyBoardCallback {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        KeyBoardEventBus.register(this)
    }

    override fun onDestroy() {
        super.onDestroy()
        KeyBoardEventBus.unRegister(this)
    }

    override fun onKeyBoardShow() {
        Log.e("xiao","键盘显示")
    }

    override fun onKeyBoardHidden() {
        Log.e("xiao", "键盘隐藏");
    }
}
